import { request } from "vendor/utils/T";
import { toApi } from "@/service/proxyApi";
import {RespDataType, RequestDataType} from "./apiType";
export * from "./apiType";

const { get, del } = request;

/**
 * 获取操作日志分页列表
 */
export const getOperLogPageList = (params: {
    page:number,
    pageSize: number,
    title?: string;
    businessType?: number;
    operName?: string;
    status?: number;
}) => {
    return get<RespDataType.OperLogPageList>(toApi("monitor/operlog/list"), params);
}

/**
 * 删除操作日志
 */
export const deleteOperLog = (operIdList:number[]) => {
    return del(toApi("monitor/operlog/"+ operIdList));
}